
run_cmd="vmagent-prod -httpListenAddr"

pids=$(ps aux|grep -w "$run_cmd" | grep -v grep|awk -F ' ' '{print$2}' | xargs )

[ -z "$pids" ] && echo "$run_cmd not run " ||  kill -9 $pids

exit 0

